package org.holdren.testspringmvc.ejb;

//import javax.ejb.Stateless;
import javax.persistence.EntityManager;

import org.holdren.testspringmvc.model.Person;
import org.springframework.stereotype.Service;

//@Stateless
@Service
public class PersonService
{
    private EntityManager entityManager;
    
	public Person getPerson(int personId) throws Exception
	{
		Person p = new Person();
		p.setAge(34);
		p.setFirstName("Thomas");
		p.setLastName("Holdren");
		p.setSex(Person.Sex.MALE);
		
		return p;
	}

}
